home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-2.iso / Files II / Prog / B-C / C++ FAQ Reference 1.0.sit / C++ FAQ Reference 1.0.rsrc / TEXT_931.txt < prev    next >
Encoding:
Text File  |  1993-06-30  |  549 b   |  3 lines

  1. Back-patching const correctness is *very* expensive.  Every 'const' you add 'over here' requires you to add four more 'over there'.  The snowball effect is magnificent -- unless you have to pay for it.  Long about the middle of the process, someone stumbles on a function that needs to be const but can't be const, and then they know why their system wasn't functioning correctly all along.  This is the benefit of const correctness, but it should be installed from the beginning.
  2.  
  3. Short answer: CONST CORRECTNESS SHOULD NOT BE DONE RETROACTIVELY!!